package com.example.simple;

import org.junit.Test;

/**
 * @ClassName SimpleCode
 * @Description
 * @Author liukun
 * @Date 2021/12/2 下午3:37
 */
public class SimpleCode {

    @Test
    public void subString() {
        String tmp = "123";
        tmp = tmp.substring(0, tmp.length() > 100 ? 100 : tmp.length());
        System.out.println(tmp);
    }
}
